import { defineStore } from 'pinia'

export const useAdminStore = defineStore('admin', {
    state: () => ({
        adminInfo: {
            name: '管理员'
        },
        sidebarCollapsed: false
    }),
    actions: {
        toggleSidebar() {
            this.sidebarCollapsed = !this.sidebarCollapsed
        }
    }
})